<!-- File: /app/View/Alumno/add.ctp -->
<?php 
    $this->html->addCrumb('Alumnos', '/Alumnos');
    $this->html->addCrumb('Nuevo', '/Alumnos/Nuevo');
    
    $this->assign("title", "Alumnos - Nuevo");
?>

<h2>Alumnos <small>Nuevo</small></h2>

<?php 
    echo $this->Form->create("Alumno");
    echo $this->Html->para("lead", "Ingrese los datos del Alumno:");
    $this->Form->inputDefaults(array(
        "div" => "form-group",
        "class" => "form-control"
    ));
?>
<div role="tabpanel">
    <!-- Nav tabs -->
    <ul class="nav nav-tabs" role="tablist">
        <li role="presentation" class="active"><a href="#personales" aria-controls="personales" role="tab" data-toggle="tab">Datos Personales</a></li>
        <li role="presentation"><a href="#usuario" aria-controls="usuario" role="tab" data-toggle="tab">Datos de Usuario</a></li>
    </ul>

    <!-- Tab panes -->
    <div class="tab-content">
        <div role="tabpanel" class="tab-pane active" id="personales">  
        <?php
            echo $this->Form->input("nombres", array(
                "label" => "Nombres",
                "autofocus" => "autofocus"
            ));
            echo $this->Form->input("apellidoPaterno", array(
                "label" => "Apellido Paterno"
            ));
            echo $this->Form->input("apellidoMaterno", array(
                "label" => "Apellido Materno"
            ));
            echo $this->Form->input("fechaNac", array(
                "label" => "Fecha de Nacimiento"
            ));
            echo $this->Form->input("direccion", array(
                "label" => "Dirección"
            ));
        ?>
    </div>
        <div role="tabpanel" class="tab-pane" id="usuario">
        <?php
            echo $this->Form->input("User.username", array(
                "label" => "Nombre de Usuario"
            ));
            echo $this->Form->input("User.password", array(
                "label" => "Password",
                "div" => "formField"
            ));
            echo $this->Form->input("User.idGrupo", array(
                "label" => "Password",
                "type" => "hidden",
                "value" => "2"
            ));
        ?>
        </div>
    </div>

</div>
<?php
    echo $this->Form->button($this->Html->tag("span", "", array("class" => "glyphicon glyphicon-ok")) . " Registrar", array("class" => "btn btn-default"));
    echo $this->Form->end();
    echo $this->Html->link("Regresar a Lista Alumnos", array("controller" => "Alumnos", "action" => "index"));
?>